<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../css/common.css"/>
    <style>
        html, body {
            background-color: #dfdede !important;
        }

        li {
            position: relative;
            padding: 3px 10px;
            border-bottom: 1px solid #d4d3d3;
            background-size: 10px;
            background-repeat: no-repeat;
            background-position: 78%;
        }

        li:first-child {
            height: 46px;
            display: -webkit-box;
            -webkit-box-align: center;
        }

        .liActive {
            background-color: #ebeceb;
        }

        li a {
            display: block;
            padding: 10px 30px;
            background-size: 20px;
            background-repeat: no-repeat;
            background-position: left;
        }

    </style>
</head>
<body>
<nav>
    <ul>
        <li tapmode="liActive"  onclick="openFrm(0, '草榴社區')"><a class="forum">草榴社區</a></li>
        <li tapmode="liActive"  onclick="set_site()"><a class="set_site">修改地址</a></li>
        <!--li tapmode="liActive"  onclick="openFrm(1, '系統設置')"><a class="setting">系統設置</a></li-->
    </ul>
</nav>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script>
apiready = function () {
    api.setStatusBarStyle({
        style: 'dark'
    });
    $api.fixIos7Bar($api.dom('nav'));
};

function openFrm(index, title){
   
    if (typeof index == 'number') {
    	$api.setStorage('index', index);
        api.execScript({
            name: 'slide',
            script: 'setFrameGroupIndex(' + index + ', "' + title + '" )'
        });
    }
    
	api.closeSlidPane();
}

function set_site(){

    api.openWin({
        name: 'win_setsite',
        url: 'win_setsite.html',
    });

}
</script>
</html>